Fixes login bug introduced in previous commit.