search done via ajax working for last name