<div class="form-box">
    <h1>Login</h1>

    <form name="form" ng-submit="login()">
        <div class="errors" ng-show="form.submitted">
            <span ng-show"typeof errors.form_error == string">{{ errors.form_error }}</span>
        </div>

        <label>Email:
            <input type="email" name="email" placeholder="example@example.com" ng-model="loginForm.email" required server-error>
        </label>

        <div class="errors" ng-show="form.email.$dirty && form.email.$invalid">
            <span ng-show="form.email.$error.required">Email is required.</span>
            <span ng-show="form.email.$error.server">{{ errors.email }}</span>
        </div>

        <label>Password:
            <input type="password" name="password" ng-model="loginForm.password" required server-error>
        </label>


        <div class="errors" ng-show="form.password.$dirty && form.password.$invalid">
            <span ng-show="form.password.$error.required">Password is required.</span>
            <span ng-show="form.password.$error.server">{{ errors.password }}</span>
        </div>

        <button type="submit" class="button">Login</button>
    </form>
</div>

<div class="form-box">
    <h1>Login</h1>

    <form name="form" ng-submit="login()">
        <div class="errors form_error" ng-show="form.submitted">
            <span ng-show"typeof errors.form_error == string">{{ errors.form_error }}</span>
        </div>

        <label>Email:
            <input type="email" name="email" placeholder="example@example.com" ng-model="loginForm.email" required server-error>
        </label>

        <div class="errors" ng-show="form.email.$dirty && form.email.$invalid">
            <span ng-show="form.email.$error.required">Email is required.</span>
            <span ng-show="form.email.$error.server">{{ errors.email }}</span>
        </div>

        <label>Password:
            <input type="password" name="password" ng-model="loginForm.password" required server-error>
        </label>


        <div class="errors" ng-show="form.password.$dirty && form.password.$invalid">
            <span ng-show="form.password.$error.required">Password is required.</span>
            <span ng-show="form.password.$error.server">{{ errors.password }}</span>
        </div>

        <button type="submit" class="button">Login</button>
    </form>
</div>

Add form_error class to the full form error
Add form_error class to the full form error
