Added encrypt_password in user.rb.