changed stuff according to the updated spec. Included login page.