fixed loginning