make form to be functional