v>
    </div>

    <div class="control-group" ng-show="!isError() && isUsernameAndPassword()">
      <button type="submit" class="btn-primary btn-large" ng-disabled="!validNameAndPassword()">Sign in <i class="icon-fixed-width icon-signin"></i></button>
    </div>

  </form>

  <div ng-show="isError() && isUsernameAndPassword()">
    <alert type="'error'" close="reset()">{{error}}</alert>
  </div>

  <hr>

  <div data-ng-show="isUsername()">
    <p><a href="/#/forgot_password">Did you forget your password?</