Added method to validate a value.
Wrote tests for ValidationController