validations for model post and comments