[TASK] add options to set error class name and required field selector