Added login/logout functionality, added tab bar.