registration code

getting the variables for registration