<% if(error && error.length > 0) { %>
<%= error %>
<% } %> <% if(success && success.length > 0) { %>
<%= success %>
<% } %>