AutoInvite - Added creation of settings.xml

Fixed errors on login/logout