Fixed bug in get_user, seems to maybe have fixed other problems as well.