<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="Login.ascx.cs" Inherits="OurUmbraco.Our.usercontrols.Login" %>

<asp:Panel runat="server" DefaultButton="bt_login">
    <div class="form simpleForm" id="registrationForm">
        <fieldset>
            <asp:Panel runat="server" ID="errors" Visible="False">
                <div class="error">
                    <p style="color: red;">
                        <asp:Literal ID="lt_err" runat="server" /></p>
                </div>
            </asp:Panel>
            <p>
                <asp:Label ID="Label2" AssociatedControlID="tb_email" CssClass="inputLabel" runat="server">Email</asp:Label>
                <asp:TextBox ID="tb_email" runat="server" ToolTip="Please enter your email address" CssClass="required email title" />
            </p>
            <p>
                <asp:Label ID="Label3" AssociatedControlID="tb_password" CssClass="inputLabel" runat="server">Password</asp:Label>
                <asp:TextBox ID="tb_password" runat="server" ToolTip="Please enter your password" TextMode="Password" CssClass="password title" />
            </p>
        </fieldset>
        <div class="buttons">
            <asp:Button ID="bt_login" OnClick="login" CssClass="submitButton" runat="server" Text="Login" />
        </div>
    </div>

    <script type="text/javascript">
        $(document).ready(function () {
            jQuery.validator.addClassRules({
                password: {
                    required: true,
                    minlength: 5
                }
            });
            $("form").validate();
        });
    </script>
</asp:Panel>
