Java: Registration Madness Assignment