chore(client): add form validation

Closes #1