Got rid of most of the bugs in user_manager