login, logout works., plus some errors fixed.