Add Boostrap validator for methods.