Add validation for invalid transition key