Changes to Registration and Ajax Files

Globalised all the required db and other php variables required for ajax drop downs.