after authentication, redirect back to the previous location