Longer logout timer

the code is very weird, but let's hope this does something