implement accesshash authentication