validation to gui step 2