Register function added, messagebox prototype

Some modification to Login.java
Implemented messagebox