Generate auth key when adding/editing an account