Using entity validator for validate the entity before saving it to the DB.

https://github.com/Gizra/restful/issues/92