finish the function logout of the  login page for the first card