add enable and disable, adopted login for sqlite backend