refactored function into rest_user.php since it was setting UI strings
that the util shouldnt need to set: public static function
renderSuccessOrLoginForError ($resultCode=null, $successRestPath=null)