Checks before submit