added search by username function