removes null check for LoginName, since it gets set to the name passed in if it is empty