added regex checking to assign house