took out restriction of having text content for input fields in toData method