registration system built in PHP and javascript