setting up form class and html elements