Implements the Regulate.registerRule method which allows the user to add their custom validation rules.