added login page and part of the main page