Sign in logic simplified