Figure:
State machine for Validate PIN
Open figure