Fix up sign in - log in logic