Fix html input values to prevent js xss attacks, added direct smarty variable is_front to determine if we are within the frontpage or not