I need PHP code for user authentication. The system should interact with a MySQL database. Key requirements: - Secure user login/logout - User registration with form handling - Password encryption and validation Ideal skills and experience: - Proficiency in PHP and MySQL - Experience with user authentication systems - Knowledge of security best practices