I'm currently investigating an issue on one of my web apps, a user was somehow able to create a duplicate record when he registered. When inserting the user details into the DB I save the registered date, the date on these 2 entries are exactly the same up to the split seconds. 
On the form's 'phone number' field, I have a onchange event that hits an endpoint to check if that phone number already exists, and the user cannot save/register if so. < 1st layer I don't know how it got bypassed.
secondly, I have this check in the async method that saves the user: 
also don't know how that got bypassed...
my question isn't related to code or any errors, it's more of how can I further investigate this? or what can possibly cause this issue, it happens every now and again...