Corrected validation of 'Create branch' and 'Create tag' buttons