You need to add regex validation to make sure that the first and last name has no spaces.