add passwordError callback