Fixed logout due to inactivity