A simple User Registration module in Java