Added registration page for new users and db function.