Update register.php

change Pram::get to variable from controller