added custom functions for grabbing form data