Added logging out after specific time
Added logging out after specific time