Added name format validation.