removing https from url after login succeeded