refactor user controller redirects