Added a bunch of checks to make sure that null records are not saved into users' lists.
Ndl: Fixed a couple of HTML validation errors.