fixed problem with retrieving input values from forms