complete get_user method