Updated User Registration Script