changed how loging in works