fixed bug with last name check