users are redirected to the page they tried to access before logging in