Changes for redirection logic for Login / Signup flow