Fix: handle nulls in gen_capacitor().
Fix: submit button no longer has a name in login form.
Fix: correctly set redirect on login link.