add login class and connect class