Fix comment validation error and flash notices