created more js files for register validation