Added login.java code