Adding the try-catch block around creating non-duplicate username/email