adding instant login, added logout