Tweaked the secret submit function functoinality