fixed bugs from build 1, added the registration page and bean