added validation to comment model