Added security (login/logout) to application
Better error handling, finished security