input validation for updating dictionary (theoretically complete!)