Updated script for testing the registration