Added alerts to the different errors that could pop up.