Added try catch to check if username is taken