draw login_ui  and solve login error