added login form and logout buttons; revised product type