Some indentation corrections in base.html

Also untangled some interleaved tags and an unterminated input field