mock version can run in two modes
add submit handlers on login forms so submit does not cause reload
add submit handler on pin