Error class added for required fields