Add validation to pie graph creation forms