#13 Check input type and add demo Submit button

Input type was not being checked for "text" - made sure to check it.
Added submit button in the demo.