added logic for the length of the the last name prompt