private int getLoginStatus(String username) {
        try {                                                       // Fisrt test is for Employee
            loginStatus.setString(1, username);
            resultSet = loginStatus.executeQuery();
            while(resultSet.next())
            {
                status = resultSet.getString("FirstLog");
            }
            if("Y".equals(status)) {
                System.out.println("three");
                return 0;
            }else if("N".equals(status)) {
                System.out.println("four");
                return 1;
            }else {                                                 // Not an Employee    
                cust_loginStatus.setString(1, username);
                resultSet = cust_loginStatus.executeQuery();
                while(resultSet.next())
                {
                    status = resultSet.getString("FirstLog");
                }
                if("Y".equals(status)) {                                
                    return 0;                                   // First login for a Customer
                }else {                          
                    return 1;                                   // Not first login for a Customer
                }
                
            }
        }catch(SQLException sqlE) {
            return sqlE.getErrorCode();
        }finally {
            try{
                if(resultSet != null)
                    resultSet.close();
            }catch(Exception e) {
                
            }
        }
    }