Fixed redirect bug to project when user is not logged in