Add an option to remove alert message if one already exists. Improved the condition to check if the email form is correctly filled out