fix bugs in /users/me logic