Add a cancel button to the 'set password' dialog

Fixes #185