Fixing bug on login