adding a main class so that we can stop working from LoginFrame