added pins and user association and authentication