added validation rules for new posts