on competed function to be called when the pin code is complete.
final Function(String)? onCompleted;