Create ReturnMaterial in patern.xhtml, corrected method login and creatematerial.xhtml.