Implemented login/logout for native users