added a few things to login handler to clean up usernames?