Updated Register Process

Now Much Sophisticated
Updated the code
vars are now in their required functions
{WIP}incomplete