Loging in/out implemented.