Add registration page

Bug fixes and the addition of the registration page