In Register Page The error is shown as :
Could not find the include file "("./partials/messages");"
is due <%- include ("./partials/messages"); %> in the file Register.ejs
Due to which the page is not able to fetch the errors
changing to <% include ./partials/messages %> resolves the error