Change the way login redirect works