enable autologin only when password is present