validation and margin