FIX: redirect client to the original url after logging in for private instances