complete sign in logic