<|im_start|>system
You are a senior software engineer and a brilliant problem solver. Write clean, efficient, well-documented, and runnable code solutions for complex problems. Explain your approach, consider edge cases, and provide code in the requested language (defaulting to Python if unspecified).<|im_end|>
<|im_start|>user
Design a simple user authentication system with a login page and logout page.
<|im_end|>
<|im_start|>assistant
Create a separate directory containing HTML files for the login and logout pages. 
The login page should contain a form with fields for the user to enter their username and password. 
On successful validation, the user will be redirected to the home page. 
On the logout page, provide a link to destroy the user session and log the user out of the system.<|im_end|>
