added style class for invalid fields