made logon system work in class