Added Java version of sign in in ch8