checks for duplicate key and sends error message back to user. needs to be updated to handle both unique conditions username and email and change response message accordingly
checks for duplicate key and sends error message back to user. needs to be updated to handle both unique conditions username and email and change response message accordingly

ryuukite/learningrepo