This is a basic example of using react-hook-form and MUI. To test global error, use "bad" as username and any password.