Form validation fixes

Fixes some auth flow bugs.