refactored user trait RedirectAfterLogin