Fixed a sessionid saving bug and updated login dialog.