Added log user in and out