private void asynchCheckUserForLogin(final String userName, final String password){
        Session session = HibernateUtil.getSessionFactory().openSession();
        session.beginTransaction();
        Userlogin fetchedUser = SelectHQLS.getUserByUname(userName, session);

        if(fetchedUser!=null && fetchedUser.getPassword().equals(password)){
            boolean loginState = true;
            sendLoginState(loginState, userName);
            Log("LOGIN PASSED... " + userName);
        }
        else{
            boolean loginState = false;
            sendLoginState(loginState, userName);
            Log("LOGIN FAILED... " + userName);

            getApi().kickUserFromServer(userName, null);
        }
        session.getTransaction().commit();
        session.close();
    }