changed registration php

renaming variables
removing unnecessary fields
linking various files to links.