I'm trying to add password length validations to a form that creates a model, the artist. The form has three fields: name, email, and password. There is no password confirmation field. I added validations to all three fields. Both name and email validations return the respective errors when I fill in those fields wrong and both gives no errors when the fields are filled in correctly. However no matter what length of a password I fill in for the password field, it always gives an error "password is too short."

code so far for validations

File: Artist.rb

```
class Artist < ActiveRecord::Base
# attr_accessible :artist_name, :route_name

include UsersHelper

has_many :band_members
has_many :users, through: :band_members
has_many :events
has_many :performers
has_many :soundcloud_embeds
has_many :petitions

has_secure_password #validations: false

validate :should_not_have_profanities
validates :artist_name, presence: true
validates :email, presence: true, format: { with: VALID_EMAIL_REGEX }, uniqueness: {          case_sensitive: false }
validates :password, length: 6..50
before_create { generate_route_name if route_name.blank? }
before_save { |user| user.email = email.downcase }

```

What I tried so far: 

switching :password to :password\_digest. This didn't work because It's password digest != password.

adding 'on: create' to 'validates :password'. This didn't seem to have any effect on fixing the problem.