Added validations to Post