To create an alert dialog for users to know if there are errors cont'd.