You could also do:

`User.find_by(username: username, password:password)`

and that would evaluate to either `nil` if the user isn't there, or an instance of the user it did find.