Fixed login bug from previous commit