label tag fixes in template for valid html rendering

1. Fix problem when for="som_id" renders to for=&quot;someid&quot;
2. Fix extra space in label tag