made forms work as intended