Fixed login, now redirect works.