modified Application.java and Logined.java