Why form widget is not working