redirect to previous browsing page after sign in.