Update Login.java

tiny modifications, so that the scanner closes right before the system.exit()