Added user auth checks.