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