adds smarter redirect when signing in