updated login system, system bugfixes