<form ng-submit="login.submit()" class="form-horizontal">
    <ul class="messages" ng-hide="!messages.length">
        <li ng-repeat="message in messages" class="alert alert-danger">
            {{::message}}
        </li>
    </ul>
    <div class="control-group">
        <label class="control-label" for="inputEmail">Email</label>
        <div class="controls">
            <input type="text" id="inputEmail" placeholder="Email" ng-model="login.email" />
        </div>
    </div>
    <div class="control-group">
        <label class="control-label" for="inputPassword">Password</label>
        <div class="controls">
            <input type="password" id="inputPassword" placeholder="Password" ng-model="login.password" />
        </div>
    </div>
    <div class="control-group">
        <div class="controls">
            <label class="checkbox">
                <input type="checkbox" ng-model="login.remember" /> Remember me
            </label>
            <button type="submit" class="btn btn-default">Sign in</button>
        </div>
    </div>
</form>
