Redirect to previous URL after sign in.