Re-did sign-in logic