Added login form to product page.
Small refactoring.