Finalized log-in log-out model