Add validation check for block and flat numbers