add css styles for validated fields