Created validation for posts