Improve code for checking active route in sign in during donation.

Thanks Mark!