registration php fixes
more php changes