Final version after lesson 2. Added html escaping, error messages, input values, and redirection