Fixed auto log-Out bug