Add error handling for registering with non-unique username.