FIX: validation and add validation button to gui