registration PHP fix