Added login page, authentication for pages, and make request frontend