alert pass before submit