Encode url login is redirected to if not already