create logout function
auto logout function
set logout time 5min