Checking for an existing user

hi there! is there any way we can check from the frontend if an inputted email already belongs to an existing user? i.e. if the email already exists, show a message