updated signon process according to libsql sourcecode