Added validations to posts