[AC] Added ability to store last url so user is taken back to most recent page after logging in