Added better login support and a package to tweak forms from templates