adding validations to comment.rb