Login Validation

The standard way to handle this:

    DataSrv.loginToApp(username, password, function onResult(err, data) {
      // ...
    });