Added validation to registration.xhtml