added pin registration