database: fixed username and password encoding
gui: some cleanup fixes
gui: ask for confirm when deleting account