add validateHash method and logic to handle authlogic conversion