updated the max length of comments to be 500 and added client side validation