modified Logined.java and routes