I have created UI for users to create their own username and password. Username and passwords are stored in JSON format.
Workflow:
When user clicks on Register Button, user will be presented with UI screen with username and password input text fields
When user enters username it invokes blur event which captures the value entered into input text field
My goal is to check the user entered username
already exists or not. If username
exists it should ask user to create new one. So duplicate usernames should not be allowed
How can we check for duplicates ??