Regressive Fix: User profile to validation code

Previous fix broke path when site is at root