making sure some fields are unique