Adding redirect to referrer URL on login