private void verifyUser(String username, String password) throws Exception{    	
    	schema = (FdotSchemaImpl) factory.getBean("connection_specs");
    	SdeConnection conn = new SdeConnection(schema.getServer(),
    			schema.getInstance(),
    			schema.getDatabase(),
    			username,
    			password);
    	try{
    		try {
    			_log.info("Verifying credentials...");
    			conn.open_connection();
    		} catch (SeException se){
    			JOptionPane.showMessageDialog(this, "Failed to verify your credentials! Please try again.");
    			if(conn!=null) {
    				_log.info("Failed to verify your credentials! Please try again.");
    				conn.close_connection();
    			}
    			throw new Exception("Connection Failed!!");
    		}
    		
    		Test.mainUsername = username;
    		Test.mainPassword = password;

    		if(conn!=null){
//    			_log.info("Close connection");
    			conn.close_connection();
    		}
    		
    		_log.info("Complete verifying credentials!");
    	} catch (SeException e) {
    		_log.error(e.getMessage());
    		_log.error(e.getSeError().getErrDesc());
    		_log.error(e.getSeError().getSdeErrMsg());

    	}
    }