Add function to grab form values