Custom Login tied to Custom registration

I’ve created a custom login lightbox and a custom registration lightbox. How do I get the custom login to check against the userProfile DB to make sure the user logging in has registered? In the event they haven’t, the custom registration form is triggered and the login form is hidden.

Perhaps this one can help you …
https://russian-dima.wixsite.com/meinewebsite/blank-9

Or this example…
https://russian-dima.wixsite.com/meinewebsite/automatic-registration