Added validations for posts