is it legal to turn a living room into a bedroom