Added authorization for pins