redirecting to the project index page after logging in.