put php code validation in register page