Made error meessage alerts, changed how users are counted and handled by an array
added error message alerts and changed user count and handling