Added login and main page