added clearInput() method and an alert message for when email is successfully sent