private void showPasswordValidationDialog(final int INTENT){
    	try{

			String passSHA12 = EMPTY_PASS_STRING;
			String inputPass = JOptionPane.showInternalInputDialog(jPanel1, recursosTexto.getString("msgPassInput"), recursosTexto.getString("msgPassInputTitle"), JOptionPane.INFORMATION_MESSAGE);
			//JPasswordField
			if( inputPass != null ){
				if( inputPass.trim().length() < PASS_LENGTH_MIN ){
					if( inputPass.equals(EMPTY_STRING) ){
						JOptionPane.showInternalMessageDialog(jPanel1, recursosTexto.getString("msgPassDisabled"), recursosTexto.getString("msgPassDisabled"), JOptionPane.ERROR_MESSAGE);
					}else{
						JOptionPane.showInternalMessageDialog(jPanel1, recursosTexto.getString("msgPassWrongInput"), recursosTexto.getString("msgErrorTitle"), JOptionPane.ERROR_MESSAGE);
					}
					isUsingPass = false;
					jMenuItemF5.setState(isUsingPass);
					return;
				}
				passSHA12 = CryptoUtils.SHA1( CryptoUtils.SHA1(inputPass) );
				
				String pasSHA12DB = getFromDBParameterByName("passSha12");
				if( pasSHA12DB == null || EMPTY_STRING.equals(pasSHA12DB) ){
					if( INTENT == PASS_REQUEST ){
						JOptionPane.showInternalMessageDialog(jPanel1, recursosTexto.getString("msgPassNewSet"), recursosTexto.getString("msgPassEnable"), JOptionPane.ERROR_MESSAGE);
					}
					
					isUsingPass = true;
					updateInDBPasswordValue(passSHA12); //set new password value
				}else if( passSHA12.equals(pasSHA12DB) ){
					isUsingPass = true;
				}else{
					JOptionPane.showInternalMessageDialog(jPanel1, recursosTexto.getString("msgPassWrongInput"), recursosTexto.getString("msgErrorTitle"), JOptionPane.ERROR_MESSAGE);
					//System.exit(-1); //Allow to continue without password
					isUsingPass = false;
					jMenuItemF5.setState(isUsingPass);
				}
				
				if( isUsingPass ){
					CryptoUtils.setCurrentPassword(inputPass);
					jMenuItemF5.setState(isUsingPass);
				}
				
			}else{
				JOptionPane.showInternalMessageDialog(jPanel1, recursosTexto.getString("msgPassDisabled"), recursosTexto.getString("msgPassDisabled"), JOptionPane.ERROR_MESSAGE);
				isUsingPass = false;
				jMenuItemF5.setState(isUsingPass);
			}
			
    	}catch(Exception e){
    		System.err.println("Maybe db password parameter not set.\n" + e.getMessage());
		}
    	
    }