Fixed issue when redirecting already authenticated user