autologout couldn't be 0
logging to file for debug
some php notices removed