changing registration script