adjusted max length of pin -Derek