fixed bug, if adding comment without login throws exception