class User < ActiveRecord::Base
  
  validates :email,
    presence: true,
    email_format: true,
    uniqueness: { case_sensitive: false }
    
  validates :password,
    length: {minimum: 10},
    password_format: true
    
  has_secure_password
  
end

class User < ActiveRecord::Base
  
  validates :email,
    presence: true,
    email_format: true,
    uniqueness: { case_sensitive: false }
    
  validates :password,
    password_format: true
    
  has_secure_password
  
end

Remove 'length' validation from User.password.
Remove 'length' validation from User.password.

Length validation is done by PasswordFormatValidator.
