Implemented login/logout and improved front-end template