add redis longin and logout method