Input checks in Person class