Listen hashchange and verify.