prevent submitting null props