add login class and process