Added functionality to registration page

Now able to add a user to the db using the registration page.