$$(document).on('page:init', '.page[data-name="signin"]', function(e) {

  $(document).off("click", "#signin_button").on("click", "#signin_button", function(e) {

  console.log('app signin-2 ready')

  //console.log(lang)

    e.preventDefault();  

    var email = $("#loginEmail").val();

    var password = $("#loginPassword").val();

    let req = {

      email,

      password

    }

    if (email && password) {

      signin(req);

      items_pria();

    } else {

      app.dialog.alert("Please enter your username and password", "Login Errors");

    }

  });

})