adding extra attributes support and default css classes to form functions.