Additional validation for branch names.

Must match regex '^[^a-zA-Z0-9\/\.\(\)_-]*([a-zA-Z0-9\/\.\(\)_-]*)' to avoid getting branch names with special characters