/views/layout.ejs
<% if (errors && !String(errors).match(/^\s*$/)) { %>

<%= errors %>

<% } %> <%- body %>