Fixed nasty bug with storing a login multiple times

When the user switched tabs on the login screen, listeners would get added to
the network class, making it so multiple listeners got triggered.