Checking user input with user database to sign in.