adding error checking to sign in form