Added a simple sanity check on the first Char of the pin string
Added a simple length check on pin data, it should be either 2 or 3 chars.