addUser.php was not behaving correctly