add validation on register.php

added some js files and css files on assets