added in authentication check, views for the registration view and a stub for the client side registration logic