add methods to parse form data