Make integer field actually work, e.g. only accept integers