fix the get_user function