Implements custom validation rules defined in validation schema

- Passes object validation to validator rule
- Adds some tests for required rule and custom rule