changed allow nil to allow blank in model validation