simplified if statement in AddPersonPage