Autologin now working, protection added