modified get_user function to take kwargs instead of username