Fixing bug with login page