Login handles the user login process.
It retrieves email and password from the request body,
validates them against the stored user credentials,
generates a JWT token upon successful login, sets it in a cookie,
and responds with success or failure.
Signup handles the user signup process.
It reads email and password from the request body, hashes the password,
creates a new user, and responds with success or failure.