Working form input value gathering function