timeout fix, added logout page, added autologin