externalized php script for registration