minor refactor after login