Fixed JSON bug and added logic to return error if adding user that already exists