adding log in/out methods