Use error messages instead of red <p>s

Error messages are shown when the form has the class error. This is
added if the error variable is not empty using {% if error %}