<!-- Bootstrap alert messages to show for invalid input on register page -->
<% if(typeof alert != 'undefined') { %>
    <% alert.forEach(function(alert) { %>
        <div class="alert alert-warning alert-dismissible fade show" role="alert">
            <%= alert.msg %>
            <button type="button" class="close" data-dismiss="alert" aria-label="Close">
                <span aria-hidden="true">&times;</span>
            </button>
        </div>
    <% }) %>
<% } %>

<!-- Flash messages to show for wrong pass or email on login -->
<% if(success_msg != ''){ %>
    <div class="alert alert-success alert-dismissible fade show" role="alert">
        <%= success_msg %>
        <button type="button" class="close" data-dismiss="alert" aria-label="Close">
                <span aria-hidden="true">&times;</span>
        </button>
    </div>
<% } %> 
<% if(error_msg != ''){ %>
    <div class="alert alert-danger alert-dismissible fade show" role="alert">
        <%= error_msg %>
        <button type="button" class="close" data-dismiss="alert" aria-label="Close">
            <span aria-hidden="true">&times;</span>
        </button>
    </div>
<% } %>