validations in post and comment model