<div id="register" class="app-form">
  <form role="form" ng-submit="register()">
    <div ng-show="obj.error" class="alert alert-danger"><strong>{{ obj.message }}</strong></div>
    <div class="form-group">
      <label for="username">User ID</label>
      <input ng-disabled="obj.message" type="text" class="form-control" id="username" ng-model="username" >
    </div>
    <div class="form-group">
      <label for="password">Password</label>
      <input ng-disabled="obj.message" type="password" class="form-control" id="password" ng-model="password" >
    </div>
    <div class="form-group">
      <label for="password">Konfirmasi Password</label>
      <input ng-disabled="obj.message" type="password" class="form-control" id="password2" ng-model="password2" >
    </div>
    <button ng-hide="obj.message" type="submit" class="btn btn-default" ng-disabled="!username || !password || !password2 || password != password2">Tambah</button>
    <p ng-show="obj.message && !obj.error">{{ obj.message }}</p>
  </form>
</div>
