Custom modal login form

Hello, I have two custom modal which is the signup and login form. the signup part is done. And having difficulties with the login part which I tried to use and frappeclient but then I have the same error message “Auth error” but when I logged in as Administrator then it says Undefined and the login message is “Logging In”. Any body have an idea to session? just like a default login