moving the public user gravatar check to the right spot