Prevent the entry of "wrong" characters in the fields