Fix some undefined property errors due to changes in Record
Fix bug where we check for username when none exists.
Fix undefined property bug when adding user due to Record change