Change form save function to register users