added data validator to replace form_validation_library