fixing the bug where multiple comments were getting submitted