Error: Can't set headers after they are sent. problems with ejs