the alerts do not show when the page loads, only after the send button
has been pressed