spacing and validation