Implemented validations on model Post