Added user/pin association and added authorization