Added various templating and submitting on off in login form