Block support for passcode challenge

Passcode challenge success of failure can be handled using block
instead of delegate.