Fix login page to redirect correctly.