Added patterns to match against while typing.
Added warning when attempting to save an incorrectly-typed input.