Adding validations to posts