few changes in Registration.java