Converted registerbean back to CDI