Checklist
Hosting
Describe the bug
The Confirm is visible when no agent name has been supplied. If you click the button, it spins indefinitely and throws an error.
To Reproduce
Steps to reproduce the behavior:
- Create new agent
- Without typing in a name, click
Confirm
- See the hanging spinner
- The console log shows the error.
Expected behavior
Validation should be added to the create new agent modal so that you cannot get into a broken state.
Screenshots

Additional context
It would also be nice if hitting the enter key confirmed the modal. (ESC already closes the modal, so makes sense to also be able to submit with the keyboard)