Made redirect from login to a query var