validated presence of first and last name
Cleaned the code up and added a final test.