Added a validator
Completed the basics of the ApiController