Try running netplwiz and toggle on/off/on/off the setting "Users must enter a password" for your user "David" rebooting in between.

Just hold down the :start: key, press R and type netplwiz
...