working on client side validation. trying to figure out how to stop the form from refreshing