Finished authentication. Changed hash to digest and incorporated has_secure_password.