Error redirecting to correct dashboard