added password and encrypted_password validation, and rake db:test:prepare and  rake db:migrate to user model