Added a try-catch for duplicate username/email entries