Fix missing user error

When a user first logs in with a fresh mongo db the user can be missing
when this happens log out and redirect back to the login page