fixed minor error, and form refreshing page on submit