Start by creating a new page, then create a form and add the necessary input fields.
Handle Signin
Within a form action. get the user credentials, check them in the database, and if its correct, create a session for the user using createSession and set the session cookie, then redirect the user to the protected route if needed.
It is recommended to validate the user credentials client-side and server-side before proceeding.
You can use useActionState to return a value and display a message to the user.