Added option to auto clear invalid input values
Fixed unnecessary type checks
Fixed autoclear option fallback
Merge pull request #19 from martinvd/clear-invalid-fields

Added option to auto clear invalid input values