modified the Logined.java