added inputs function to TB Helper
enhanced input function in BF Helper to apply the correct name attribute as well as apply the required attribute when applicable