Setting up user registeration in Java