fixed registration php