Added validations and error messages to comments and posts