-added a method to match passwords in RegistrationBean.java