Added a database search for when user wants to login.