debug
add login logout method  with session