modified the logined.java