Final version

Removed alerts, and put error message in red, like the assignment requested. Corrected typos.