Checks whether password is correct with has_password? method