Figure: State machine for Validate PIN