add more logs in userhandler
add catch err in logout