fix sign in dialog and functions
set codecs
implement load mainwindow from file