This is a Client Component.It uses Server Action to handle the form submission. If there is an invalid input, server will return error and React.useState will be updated with error message, then errors rendered in UI.