set up submit conditions