Added handling for creating user when that userid already exists.