putting in some checking to the Auto Logon