Loop correctly through error and success messages.

Some whitespace changes too.
Input form wasn't being displayed for the email.