optimized user redirect upon login or signup