implemented authentication and a physical
button for locking/unlocking