cleaned up sign in logic and session service