modified Logined.java and Comment.java