validate length for name and email