for validation style