added regular expression validation for chord input