public void CheckUser(String user, String pass){

           try {
               ResultSet rs = Main.sql.doquery("SELECT * FROM bout_users WHERE username='"+ user +"' LIMIT 1");
               while (rs.next()) {
                    this.LOGIN_ID = rs.getInt("id");
                    this.LOGIN_USERNAME = rs.getString("username");
                    this.LOGIN_PASSWORD = md5hash(rs.getString("password"));
                    this.LOGIN_BANNED = rs.getInt("banned");
                    this.LOGIN_ALLOG = rs.getInt("online");
                    this.LOGIN_RESULT = 0;
                    
               }
               if (this.LOGIN_ID == 0)//incorrect username
               {
                   this.LOGIN_RESULT = 1;
               }
               else if (!this.pass.equals(this.LOGIN_PASSWORD))//incorrect password
               {
                   this.LOGIN_RESULT = 2;

               } 
               else if (this.LOGIN_BANNED == 1)//ban check
               {
                   this.LOGIN_RESULT = 3;
               }
               else if (this.LOGIN_ALLOG == 1)//session created check
               {
                   this.LOGIN_RESULT = 4;
               }
           } catch (Exception e) {
               e.printStackTrace();
               debug("Exception: " + e.getMessage());
           }
    }