Fixes #342 (duplicate comment bug on login)
This is a bug introduced with this commit - 44dd4fa0
I rewrote the function slightly so that the comment isn't duplicated on authentication success.