Added a save function for the provider edit/create page