Fixed Null Pointer Exception relating to nonexistent login name.