Stp user from submitting a form if same details are already submitted

Please advise, is it possible to create a form for users to be able to fill only once? For example, the user can not submit the form if the email or phone are already submitted.