split the name error checking into last and first name