fixes #56 prevent user from entering duplicate value