I'm trying to implement custom AD B2C policy which should work in the following way: First, user lands on screen with email field, he enters his email and clicks on "Next" button. Then, if user with entered email is already exists in local directory he is redirected to page to enter his password, if email does not exist in local directory - he should be redirected to sign up page with pre-populated email.
I'm looking for some examples or advices on where to start for implementing such policy