wrapped the code verification in flask forms