Fixed last name check