set length of pincode field and validate