rename $pwcallback to $read_password_func