Update status when login and exit