Before modifying for widget creation

Before modifying for registration form widget creation