Fix a pretty major issue involving logging in twice