NewBranchDialog now checks if branchName is valid. Creating a new branch now displays a message indicating whether successful or not