added addNewUser -1 error check that coinsides with app state check