Validation to formatted