Now the login button only needs to be clicked once, fixes #2