add required & validation error class