separated login and home pages, added logout functionality