input checking so people don't do silly things