<% if (error != '') { %>
 <script src="https://cdn.jsdelivr.net/npm/sweetalert2@11"></script>
     <script type="text/javascript">
     Swal.fire(
    'Error',
    '<%- error %>',
    'error'
   )
 </script>
   <% } %>